package org.telegram.bot.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.telegram.bot.domain.BotProhibitedWords;

/**
 * 违禁词管理Mapper接口
 *
 * @author wyx
 * @date 2023-05-30
 */
public interface BotProhibitedWordsMapper extends BaseMapper<BotProhibitedWords>
{

    /**
     * 查询违禁词管理列表
     *
     * @param botProhibitedWords 违禁词管理
     * @return 违禁词管理集合
     */
    public List<BotProhibitedWords> selectBotProhibitedWordsList(BotProhibitedWords botProhibitedWords);
    public List<String> selectAllWordsList();

    int existsWord(@Param("word") String word,@Param("chatId") Long chatId);

    Integer deleteByWord(@Param("word") String word);
}
